import request from '@/sheep/request';

export default {
  getGenealogySelect: (data) =>
    request({
      url: '/api/genealogy/getGenealogySelect',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 创建家谱
  addGenealogy: (data) =>
    request({
      url: '/api/genealogy/addGenealogy',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取家谱详情
  // getTreeLists: (data) =>
  //   request({
  //     url: '/api/genealogy/getTreeLists',
  //     method: 'GET',
  //     data,
  //     custom: {
  //       showLoading: false,
  //     },
  //   }),
  getTreeLists: (data) =>
    request({
      url: '/api/genealogy/getTreeListsV2',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 添加家谱树
  addTrees: (data) =>
    request({
      url: '/api/genealogy/addTrees',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取成员config
  getConfigMember: (data) =>
    request({
      url: '/api/genealogy/getConfigMember',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取个人资料
  getGenealogyPersonal: (data) =>
    request({
      url: '/api/genealogy/getGenealogyPersonal',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 修改家庭成员信息
  updateMemberInfo: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyPersonal',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取祠堂信息
  getMemorialTablet: (data) =>
    request({
      url: '/api/genealogy/getMemorialTablet',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  aliveDetail: (data) =>
    request({
      url: '/api/genealogy/aliveDetail',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  diyUserInfo: (data) =>
    request({
      url: '/api/user/diyUserInfo',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  get_leaving_messages: (data) =>
    request({
      url: '/api/genealogy/get_leaving_messages',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getClickLoveRecord: (data) =>
    request({
      url: '/api/genealogy/getClickLoveRecord',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getLampRecord: (data) =>
    request({
      url: '/api/genealogy/getLampRecord',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGiftRecord: (data) =>
    request({
      url: '/api/genealogy/getGiftRecord',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getAncestralFlower: (data) =>
    request({
      url: '/api/genealogy/getAncestralFlower',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getConfigFlower: (data) =>
    request({
      url: '/api/genealogy/getConfigFlower',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  clickChangMingLamp: (data) =>
    request({
      url: '/api/genealogy/clickChangMingLamp',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  clickLove: (data) =>
    request({
      url: '/api/genealogy/clickLove',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  gift: (data) =>
    request({
      url: '/api/genealogy/gift',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  leaving_message: (data) =>
    request({
      url: '/api/genealogy/leaving_message',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyInfo: (data) =>
    request({
      url: '/api/genealogy/getGenealogyInfo',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyInfo: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyInfo',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyMember: (data) =>
    request({
      url: '/api/genealogy/getGenealogyMember',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  genealogyMemberInfo: (data) =>
    request({
      url: '/api/genealogy/genealogyMemberInfo',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  createGenealogyCode: (data) =>
    request({
      url: '/api/genealogy/createGenealogyCode',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  signOutGenealogy: (data) =>
    request({
      url: '/api/genealogy/signOutGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyLog: (data) =>
    request({
      url: '/api/genealogy/getGenealogyLog',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  searchGenealogy: (data) =>
    request({
      url: '/api/genealogy/searchGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  applyAddGenealogyNew: (data) =>
    request({
      url: '/api/genealogy/applyAddGenealogyNew',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getTreeRelationCall: (data) =>
    request({
      url: '/api/genealogy/getTreeRelationCall',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  agree_join: (data) =>
    request({
      url: '/api/genealogy/agree_join',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  deleteGenealogyMember: (data) =>
    request({
      url: '/api/genealogy/deleteGenealogyMember',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  agreeJoinGenealogy: (data) =>
    request({
      url: '/api/genealogy/agreeJoinGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyMemberAuth: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyMemberAuth',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  removeMember: (data) =>
    request({
      url: '/api/genealogy/removeMember',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  checkUserInGenealogy: (data) =>
    request({
      url: '/api/genealogy/checkUserInGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateAncestralInfo: (data) =>
    request({
      url: '/api/genealogy/updateAncestralInfo',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getBackgroundList: (data) =>
    request({
      url: '/api/genealogy/getBackgroundList',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getNoLoginGenealogy: (data) =>
    request({
      url: '/api/genealogy/getNoLoginGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getShowOld: (data) =>
    request({
      url: '/api/genealogy/getShowOld',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyMemberSameLevel: (data) =>
    request({
      url: '/api/genealogy/getGenealogyMemberSameLevel',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyRelationSort: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyRelationSort',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyUserOlderValue: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyUserOlderValue',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyTreeAvatar: (data) =>
    request({
      url: '/api/genealogy/getGenealogyTreeAvatar',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyTreeAvatarV2: (data) =>
    request({
      url: '/api/genealogy/getGenealogyTreeAvatarV2',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addImageCache: (data) =>
    request({
      url: '/api/genealogy/addImageCache',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogySort: (data) =>
    request({
      url: '/api/genealogy/updateGenealogySort',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addGenealogyShare: (data) =>
    request({
      url: '/api/genealogy/addGenealogyShare',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  checkAddNum: (data) =>
    request({
      url: '/api/genealogy/checkAddNum',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addGold: (data) =>
    request({
      url: '/api/genealogy/addGold',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addAncestralGold: (data) =>
    request({
      url: '/api/genealogy/addAncestralGold',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyBeginShi: (data) =>
    request({
      url: '/api/genealogy/getGenealogyBeginShi',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyBeginShi: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyBeginShi',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyShiSetting: (data) =>
    request({
      url: '/api/genealogy/getGenealogyShiSetting',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateGenealogyShiSetting: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyShiSetting',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addGenealogyShiSetting: (data) =>
    request({
      url: '/api/genealogy/addGenealogyShiSetting',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyShi: (data) =>
    request({
      url: '/api/genealogy/getGenealogyShi',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  checkAuth: (data) =>
    request({
      url: '/api/genealogy/checkAuth',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyBirthdayList: (data) =>
    request({
      url: '/api/genealogy/getGenealogyBirthdayList',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyBirthdayListBy1: (data) =>
    request({
      url: '/api/genealogy/getGenealogyBirthdayListBy1',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getFamilyMemoryDayDetail: (data) =>
    request({
      url: '/api/genealogy/getFamilyMemoryDayDetail',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  tribute: (data) =>
    request({
      url: '/api/genealogy/tribute',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getTributeRecord: (data) =>
    request({
      url: '/api/genealogy/getTributeRecord',
      method: 'GET',
      data,
    }),
  updateGenealogyCenter: (data) =>
    request({
      url: '/api/genealogy/updateGenealogyCenter',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  showBindButton: (data) =>
    request({
      url: '/api/genealogy/showBindButton',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  bindRealUser: (data) =>
    request({
      url: '/api/genealogy/bindRealUser',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  unbindRealUser: (data) =>
    request({
      url: '/api/genealogy/unbindRealUser',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyMemberByCode: (data) =>
    request({
      url: '/api/genealogy/getGenealogyMemberByCode',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  applyMergeGenealogy: (data) =>
    request({
      url: '/api/genealogy/applyMergeGenealogy',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getOtherSpouse: (data) =>
    request({
      url: '/api/genealogy/getOtherSpouse',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  changeFather: (data) =>
    request({
      url: '/api/genealogy/changeFather',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyRelationListV3: (data) =>
    request({
      url: '/api/genealogy/getGenealogyRelationListV3',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyTreeListV4: (data) =>
    request({
      url: '/api/genealogy/getGenealogyTreeListV4',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getGenealogyTreeListByCenterId: (data) =>
    request({
      url: '/api/genealogy/getGenealogyTreeListByCenterId',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  searchGenealogyRelation: (data) =>
    request({
      url: '/api/genealogy/searchGenealogyRelation',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  isBindGenealogy: (data) =>
    request({
      url: '/api/genealogy/isBindGenealogy',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
};